package com.test.validatetype;

/**
 * @Aurher: QiaoHang
 * @Description:
 * @Data: 2019/9/12 13:47
 * @Modified By:
 */
public class ConsistantResult<T> {
    public String code;
    private String message;
    private T data;

    public ConsistantResult() {
    }

    @Override
    public String toString() {
        return "ConsistantResult{" +
                "code='" + code + '\'' +
                ", message='" + message + '\'' +
                ", data=" + data +
                '}';
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    public ConsistantResult(String code, String message, T data) {
        this.code = code;
        this.message = message;
        this.data = data;
    }
}
